require 'fileutils'

here = File.dirname(__FILE__)
there = RAILS_ROOT

puts "Installing BenchmarkForRailsViewer..."
FileUtils.mkdir_p("#{there}/public/benchmark/")
FileUtils.cp_r("#{here}/benchmark", "#{there}/public")

puts "BenchmarkForRailsViewer has been successfully installed."
puts
puts "Please refer to the readme file #{File.expand_path(here)}/README"